import Vue from 'vue'
import VueRouter from 'vue-router'
import cinemaRouter from './cinema'
import MovieRouter from './movie'
import MineRouter from './mine'

Vue.use(VueRouter)

const routes = [
  cinemaRouter,
  MovieRouter,
  MineRouter,
  {
    path:"/*",
    redirect:'movie'
  }
]

const router = new VueRouter({
  mode: 'history',
  // base: process.env.BASE_URL,
  base:'miaomiao',
  routes
})

export default router
